/* 全局样式升级 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

/* 全局容器样式 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 高级卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 1px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(102, 126, 234, 0.2);
}

/* 高级按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 帖子项目样式升级 */
.post-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Element Plus 组件样式覆盖 */
.el-button {
  border-radius: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.el-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
}

.el-button--primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 输入框样式升级 */
.el-input__wrapper {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.el-input__wrapper:hover {
  border-color: #667eea !important;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15) !important;
}

.el-input__wrapper.is-focus {
  border-color: #667eea !important;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25) !important;
}

/* 菜单样式升级 */
.el-menu--horizontal {
  border-bottom: none !important;
  background: transparent !important;
}

.el-menu-item {
  border-radius: 12px !important;
  margin: 0 4px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.el-menu-item:hover,
.el-menu-item.is-active {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
  border-bottom: none !important;
}

/* 标签样式升级 */
.el-tag {
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
}

/* 头像样式升级 */
.el-avatar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

/* 分页样式升级 */
.el-pagination {
  --el-pagination-button-color: #64748b;
  --el-pagination-button-bg-color: rgba(255, 255, 255, 0.8);
  --el-pagination-button-border-radius: 10px;
}

.el-pager li {
  border-radius: 10px !important;
  margin: 0 2px !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.el-pager li:hover,
.el-pager li.is-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

/* 图片样式升级 */
.el-image {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.el-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 文本选择样式 */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .card {
    padding: 16px;
    border-radius: 16px;
  }
}